<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>动态列表 - 社交平台</title>
    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome 图标 -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
    
    <style>
        :root {
            --primary: #4263EB;
            --secondary: #FA5252;
            --gray: #6C757D;
            --light-gray: #F8F9FA;
            --border-color: #EEEEEE;
            --card-radius: 12px;
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            background-color: #F5F7FA;
            color: #333;
            padding-top: 56px;
        }
        
        /* 顶部导航 */
        .top-nav {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 56px;
            background-color: white;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 16px;
            z-index: 1000;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
        }
        
        .nav-title {
            font-size: 18px;
            font-weight: 600;
        }
        
        .nav-btn {
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: none;
            border: none;
            color: #333;
            font-size: 20px;
        }
        
        /* 动态列表容器 */
        .feed-container {
            padding-bottom: 70px;
        }
        
        /* 动态项 */
        .feed-item {
            background-color: white;
            margin-bottom: 12px;
            border-radius: var(--card-radius);
            overflow: hidden;
        }
        
        /* 动态头部 */
        .feed-header {
            display: flex;
            align-items: center;
            padding: 12px 16px;
        }
        
        .user-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
            margin-right: 12px;
        }
        
        .user-info {
            flex: 1;
        }
        
        .user-name {
            font-size: 15px;
            font-weight: 600;
            margin-bottom: 2px;
        }
        
        .post-time {
            font-size: 12px;
            color: var(--gray);
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        .post-menu {
            background: none;
            border: none;
            color: var(--gray);
            font-size: 16px;
        }
        
        /* 转发标识 */
        .repost-tag {
            padding: 6px 16px;
            background-color: var(--light-gray);
            font-size: 13px;
            color: var(--gray);
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        /* 动态内容 */
        .feed-content {
            padding: 0 16px 12px;
            font-size: 15px;
            line-height: 1.6;
        }
        
        .feed-content p {
            margin-bottom: 8px;
        }
        
        .content-tag {
            color: var(--primary);
            text-decoration: none;
        }
        
        /* 动态图片 */
        .feed-images {
            padding: 0 16px 12px;
        }
        
        .image-grid {
            display: grid;
            gap: 4px;
        }
        
        .image-grid-1 {
            grid-template-columns: 1fr;
        }
        
        .image-grid-2, .image-grid-4 {
            grid-template-columns: repeat(2, 1fr);
        }
        
        .image-grid-3, .image-grid-5, .image-grid-6 {
            grid-template-columns: repeat(3, 1fr);
        }
        
        .feed-image {
            width: 100%;
            border-radius: 8px;
            object-fit: cover;
        }
        
        .image-grid-1 .feed-image {
            height: 220px;
        }
        
        .image-grid-2 .feed-image,
        .image-grid-3 .feed-image,
        .image-grid-4 .feed-image,
        .image-grid-5 .feed-image,
        .image-grid-6 .feed-image {
            height: 110px;
        }
        
        /* 转发内容卡片 */
        .repost-card {
            margin: 0 16px 12px;
            padding: 12px;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            background-color: var(--light-gray);
        }
        
        .repost-type {
            font-size: 12px;
            color: var(--gray);
            margin-bottom: 4px;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        .repost-title {
            font-size: 14px;
            font-weight: 500;
            margin-bottom: 6px;
            line-height: 1.4;
        }
        
        .repost-excerpt {
            font-size: 13px;
            color: var(--gray);
            margin-bottom: 8px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .repost-meta {
            font-size: 12px;
            color: var(--gray);
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        /* 动态底部操作 */
        .feed-actions {
            display: flex;
            padding: 8px 0;
            border-top: 1px solid var(--border-color);
            margin: 0 16px;
        }
        
        .action-btn {
            flex: 1;
            padding: 6px 0;
            background: none;
            border: none;
            font-size: 14px;
            color: var(--gray);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }
        
        .action-btn:hover, .action-btn.active {
            color: var(--secondary);
        }
        
        /* 评论区样式 */
        .comments-section {
            padding: 0 16px 16px;
            background-color: #FCFCFC;
        }
        
        .comments-header {
            font-size: 14px;
            color: var(--gray);
            margin-bottom: 12px;
            padding-top: 8px;
        }
        
        .comment-item {
            display: flex;
            gap: 10px;
            margin-bottom: 16px;
        }
        
        .comment-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            object-fit: cover;
            flex-shrink: 0;
        }
        
        .comment-content {
            flex: 1;
            background-color: var(--light-gray);
            border-radius: 16px;
            padding: 10px 12px;
        }
        
        .comment-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 4px;
        }
        
        .comment-author {
            font-size: 13px;
            font-weight: 500;
        }
        
        .comment-time {
            font-size: 11px;
            color: var(--gray);
        }
        
        .comment-text {
            font-size: 14px;
            margin-bottom: 6px;
        }
        
        .comment-actions {
            display: flex;
            gap: 16px;
            font-size: 12px;
        }
        
        .comment-action {
            color: var(--gray);
            background: none;
            border: none;
            padding: 0;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        .comment-action:hover {
            color: var(--primary);
        }
        
        /* 回复样式 */
        .replies-container {
            margin-left: 46px;
            margin-top: -8px;
        }
        
        .reply-item {
            display: flex;
            gap: 8px;
            margin-bottom: 12px;
        }
        
        .reply-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            object-fit: cover;
            flex-shrink: 0;
        }
        
        .reply-content {
            flex: 1;
            background-color: var(--light-gray);
            border-radius: 14px;
            padding: 8px 10px;
        }
        
        .reply-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 2px;
        }
        
        .reply-author {
            font-size: 12px;
            font-weight: 500;
        }
        
        .reply-to {
            color: var(--primary);
        }
        
        .reply-time {
            font-size: 10px;
            color: var(--gray);
        }
        
        .reply-text {
            font-size: 13px;
        }
        
        /* 评论输入框 */
        .comment-input-container {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 16px 16px;
            background-color: white;
        }
        
        .comment-input {
            flex: 1;
            background-color: var(--light-gray);
            border-radius: 20px;
            padding: 8px 14px;
            font-size: 14px;
            border: none;
            outline: none;
        }
        
        .send-comment {
            width: 34px;
            height: 34px;
            border-radius: 50%;
            background-color: var(--primary);
            color: white;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        
        /* 底部发布栏 */
        .bottom-bar {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background-color: white;
            padding: 8px 16px;
            display: flex;
            align-items: center;
            gap: 10px;
            border-top: 1px solid var(--border-color);
            z-index: 900;
        }
        
        .post-input {
            flex: 1;
            background-color: var(--light-gray);
            border-radius: 20px;
            padding: 10px 16px;
            font-size: 14px;
            border: none;
        }
        
        .post-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: var(--primary);
            color: white;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
        }
    </style>
</head>
<body>
    <!-- 顶部导航 -->
    <div class="top-nav">
        <button class="nav-btn">
            <i class="fas fa-th-large"></i>
        </button>
        <div class="nav-title">动态</div>
        <button class="nav-btn">
            <i class="fas fa-bell"></i>
        </button>
    </div>
    
    <!-- 动态列表 -->
    <div class="feed-container">
        <!-- 1. 无图原创动态（带评论和回复） -->
        <div class="feed-item">
            <div class="feed-header">
                <img src="https://picsum.photos/id/64/100/100" alt="用户头像" class="user-avatar">
                <div class="user-info">
                    <div class="user-name">张小明</div>
                    <div class="post-time">
                        <i class="far fa-clock"></i> 今天 08:30
                    </div>
                </div>
                <button class="post-menu">
                    <i class="fas fa-ellipsis-h"></i>
                </button>
            </div>
            <div class="feed-content">
                <p>新的一天开始了！今天也要元气满满地工作💪 大家早上都吃什么早餐呀？#晨间分享#</p>
            </div>
            <div class="feed-actions">
                <button class="action-btn comment-toggle" data-target="comments-1">
                    <i class="far fa-comment"></i> 评论 (8)
                </button>
                <button class="action-btn">
                    <i class="far fa-retweet"></i> 转发 (2)
                </button>
                <button class="action-btn active">
                    <i class="fas fa-heart"></i> 点赞 (24)
                </button>
                <button class="action-btn">
                    <i class="far fa-paper-plane"></i> 分享
                </button>
            </div>
            
            <!-- 评论区 -->
            <div class="comments-section" id="comments-1">
                <div class="comments-header">全部评论 (8)</div>
                
                <!-- 评论1 -->
                <div class="comment-item">
                    <img src="https://picsum.photos/id/91/100/100" alt="评论者头像" class="comment-avatar">
                    <div class="comment-content">
                        <div class="comment-header">
                            <span class="comment-author">李小花</span>
                            <span class="comment-time">今天 08:45</span>
                        </div>
                        <div class="comment-text">我早上吃了豆浆油条，经典搭配！</div>
                        <div class="comment-actions">
                            <button class="comment-action like-comment">
                                <i class="far fa-heart"></i> 3
                            </button>
                            <button class="comment-action reply-toggle" data-target="replies-1-1">
                                <i class="far fa-reply"></i> 回复
                            </button>
                        </div>
                    </div>
                </div>
                
                <!-- 回复区1 -->
                <div class="replies-container" id="replies-1-1">
                    <div class="reply-item">
                        <img src="https://picsum.photos/id/64/100/100" alt="回复者头像" class="reply-avatar">
                        <div class="reply-content">
                            <div class="reply-header">
                                <span class="reply-author">张小明 <span class="reply-to">回复 李小花</span></span>
                                <span class="reply-time">今天 08:50</span>
                            </div>
                            <div class="reply-text">我也喜欢油条，不过最近在减肥，只能吃全麦面包了😭</div>
                        </div>
                    </div>
                </div>
                
                <!-- 评论2 -->
                <div class="comment-item">
                    <img src="https://picsum.photos/id/92/100/100" alt="评论者头像" class="comment-avatar">
                    <div class="comment-content">
                        <div class="comment-header">
                            <span class="comment-author">王大力</span>
                            <span class="comment-time">今天 09:12</span>
                        </div>
                        <div class="comment-text">推荐尝试三明治加咖啡，上午工作效率超高！</div>
                        <div class="comment-actions">
                            <button class="comment-action like-comment">
                                <i class="far fa-heart"></i> 5
                            </button>
                            <button class="comment-action reply-toggle" data-target="replies-1-2">
                                <i class="far fa-reply"></i> 回复
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 评论输入框 -->
            <div class="comment-input-container">
                <input type="text" class="comment-input" placeholder="添加评论...">
                <button class="send-comment">
                    <i class="fas fa-paper-plane"></i>
                </button>
            </div>
        </div>
        
        <!-- 2. 单图原创动态（带评论） -->
        <div class="feed-item">
            <div class="feed-header">
                <img src="https://picsum.photos/id/65/100/100" alt="用户头像" class="user-avatar">
                <div class="user-info">
                    <div class="user-name">李摄影</div>
                    <div class="post-time">
                        <i class="far fa-clock"></i> 昨天 19:45
                    </div>
                </div>
                <button class="post-menu">
                    <i class="fas fa-ellipsis-h"></i>
                </button>
            </div>
            <div class="feed-content">
                <p>傍晚时分的城市天际线，捕捉到了美丽的晚霞 🌇 #城市摄影#</p>
            </div>
            <div class="feed-images">
                <div class="image-grid image-grid-1">
                    <img src="https://picsum.photos/id/1039/600/400" alt="动态图片" class="feed-image">
                </div>
            </div>
            <div class="feed-actions">
                <button class="action-btn comment-toggle" data-target="comments-2">
                    <i class="far fa-comment"></i> 评论 (28)
                </button>
                <button class="action-btn">
                    <i class="far fa-retweet"></i> 转发 (5)
                </button>
                <button class="action-btn">
                    <i class="far fa-heart"></i> 点赞 (132)
                </button>
                <button class="action-btn">
                    <i class="far fa-paper-plane"></i> 分享
                </button>
            </div>
            
            <!-- 评论区 -->
            <div class="comments-section" id="comments-2" style="display: none;">
                <div class="comments-header">全部评论 (28)</div>
                
                <!-- 评论1 -->
                <div class="comment-item">
                    <img src="https://picsum.photos/id/81/100/100" alt="评论者头像" class="comment-avatar">
                    <div class="comment-content">
                        <div class="comment-header">
                            <span class="comment-author">张风景</span>
                            <span class="comment-time">昨天 20:05</span>
                        </div>
                        <div class="comment-text">这张照片的构图太完美了！请问用的什么相机拍摄的？</div>
                        <div class="comment-actions">
                            <button class="comment-action like-comment">
                                <i class="far fa-heart"></i> 18
                            </button>
                            <button class="comment-action reply-toggle" data-target="replies-2-1">
                                <i class="far fa-reply"></i> 回复
                            </button>
                        </div>
                    </div>
                </div>
                
                <!-- 回复区1 -->
                <div class="replies-container" id="replies-2-1">
                    <div class="reply-item">
                        <img src="https://picsum.photos/id/65/100/100" alt="回复者头像" class="reply-avatar">
                        <div class="reply-content">
                            <div class="reply-header">
                                <span class="reply-author">李摄影 <span class="reply-to">回复 张风景</span></span>
                                <span class="reply-time">昨天 20:12</span>
                            </div>
                            <div class="reply-text">谢谢喜欢！用的是索尼A7M4 + 24-70mm F2.8镜头</div>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 评论输入框 -->
            <div class="comment-input-container">
                <input type="text" class="comment-input" placeholder="添加评论...">
                <button class="send-comment">
                    <i class="fas fa-paper-plane"></i>
                </button>
            </div>
        </div>
        
        <!-- 3. 多图原创动态 -->
        <div class="feed-item">
            <div class="feed-header">
                <img src="https://picsum.photos/id/66/100/100" alt="用户头像" class="user-avatar">
                <div class="user-info">
                    <div class="user-name">王美食</div>
                    <div class="post-time">
                        <i class="far fa-clock"></i> 昨天 12:10
                    </div>
                </div>
                <button class="post-menu">
                    <i class="fas fa-ellipsis-h"></i>
                </button>
            </div>
            <div class="feed-content">
                <p>周末在家尝试做了三道新菜，味道还不错！推荐给大家 <a href="#" class="content-tag">#美食分享#</a></p>
            </div>
            <div class="feed-images">
                <div class="image-grid image-grid-3">
                    <img src="https://picsum.photos/id/292/300/300" alt="动态图片" class="feed-image">
                    <img src="https://picsum.photos/id/431/300/300" alt="动态图片" class="feed-image">
                    <img src="https://picsum.photos/id/488/300/300" alt="动态图片" class="feed-image">
                </div>
            </div>
            <div class="feed-actions">
                <button class="action-btn comment-toggle" data-target="comments-3">
                    <i class="far fa-comment"></i> 评论 (42)
                </button>
                <button class="action-btn">
                    <i class="far fa-retweet"></i> 转发 (12)
                </button>
                <button class="action-btn">
                    <i class="far fa-heart"></i> 点赞 (89)
                </button>
                <button class="action-btn">
                    <i class="far fa-paper-plane"></i> 分享
                </button>
            </div>
            
            <!-- 评论区 -->
            <div class="comments-section" id="comments-3" style="display: none;">
                <div class="comments-header">全部评论 (42)</div>
                
                <!-- 评论1 -->
                <div class="comment-item">
                    <img src="https://picsum.photos/id/71/100/100" alt="评论者头像" class="comment-avatar">
                    <div class="comment-content">
                        <div class="comment-header">
                            <span class="comment-author">刘吃货</span>
                            <span class="comment-time">昨天 12:25</span>
                        </div>
                        <div class="comment-text">看起来好美味！请问中间那道菜是什么？做法可以分享一下吗？</div>
                        <div class="comment-actions">
                            <button class="comment-action like-comment">
                                <i class="far fa-heart"></i> 24
                            </button>
                            <button class="comment-action reply-toggle" data-target="replies-3-1">
                                <i class="far fa-reply"></i> 回复
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 评论输入框 -->
            <div class="comment-input-container">
                <input type="text" class="comment-input" placeholder="添加评论...">
                <button class="send-comment">
                    <i class="fas fa-paper-plane"></i>
                </button>
            </div>
        </div>
        
        <!-- 4. 转发文章动态 -->
        <div class="feed-item">
            <div class="feed-header">
                <img src="https://picsum.photos/id/67/100/100" alt="用户头像" class="user-avatar">
                <div class="user-info">
                    <div class="user-name">赵阅读</div>
                    <div class="post-time">
                        <i class="far fa-clock"></i> 2天前
                    </div>
                </div>
                <button class="post-menu">
                    <i class="fas fa-ellipsis-h"></i>
                </button>
            </div>
            <div class="feed-content">
                <p>这篇文章分析得很到位，推荐给对人工智能感兴趣的朋友阅读 🤖</p>
            </div>
            <div class="repost-card">
                <div class="repost-type">
                    <i class="fas fa-file-alt"></i> 文章
                </div>
                <div class="repost-title">
                    人工智能在未来五年的发展趋势与应用场景
                </div>
                <div class="repost-excerpt">
                    随着技术的不断进步，人工智能正从实验室走向实际应用。本文将从技术突破、产业应用、伦理规范三个维度，分析未来五年人工智能的发展方向...
                </div>
                <div class="repost-meta">
                    <span><i class="far fa-eye"></i> 3.2k阅读</span>
                    <span><i class="far fa-comment"></i> 86评论</span>
                </div>
            </div>
            <div class="feed-actions">
                <button class="action-btn comment-toggle" data-target="comments-4">
                    <i class="far fa-comment"></i> 评论 (15)
                </button>
                <button class="action-btn">
                    <i class="far fa-retweet"></i> 转发 (32)
                </button>
                <button class="action-btn">
                    <i class="far fa-heart"></i> 点赞 (64)
                </button>
                <button class="action-btn">
                    <i class="far fa-paper-plane"></i> 分享
                </button>
            </div>
            
            <!-- 评论区 -->
            <div class="comments-section" id="comments-4" style="display: none;">
                <div class="comments-header">全部评论 (15)</div>
                
                <!-- 评论1 -->
                <div class="comment-item">
                    <img src="https://picsum.photos/id/72/100/100" alt="评论者头像" class="comment-avatar">
                    <div class="comment-content">
                        <div class="comment-header">
                            <span class="comment-author">孙科技</span>
                            <span class="comment-time">2天前</span>
                        </div>
                        <div class="comment-text">确实值得一读，AI伦理那块分析很深入</div>
                        <div class="comment-actions">
                            <button class="comment-action like-comment">
                                <i class="far fa-heart"></i> 8
                            </button>
                            <button class="comment-action reply-toggle" data-target="replies-4-1">
                                <i class="far fa-reply"></i> 回复
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 评论输入框 -->
            <div class="comment-input-container">
                <input type="text" class="comment-input" placeholder="添加评论...">
                <button class="send-comment">
                    <i class="fas fa-paper-plane"></i>
                </button>
            </div>
        </div>
        
        <!-- 5. 转发相册动态 -->
        <div class="feed-item">
            <div class="feed-header">
                <img src="https://picsum.photos/id/68/100/100" alt="用户头像" class="user-avatar">
                <div class="user-info">
                    <div class="user-name">孙旅行</div>
                    <div class="post-time">
                        <i class="far fa-clock"></i> 3天前
                    </div>
                </div>
                <button class="post-menu">
                    <i class="fas fa-ellipsis-h"></i>
                </button>
            </div>
            <div class="repost-tag">
                <i class="fas fa-retweet"></i> 转发自 山水摄影
            </div>
            <div class="feed-content">
                <p>这些风景照片太美了，已经加入我的旅行清单！</p>
            </div>
            <div class="repost-card">
                <div class="repost-type">
                    <i class="fas fa-images"></i> 相册 · 自然风光摄影集
                </div>
                <div class="image-grid image-grid-4">
                    <img src="https://picsum.photos/id/10/300/300" alt="相册图片" class="feed-image">
                    <img src="https://picsum.photos/id/15/300/300" alt="相册图片" class="feed-image">
                    <img src="https://picsum.photos/id/28/300/300" alt="相册图片" class="feed-image">
                    <img src="https://picsum.photos/id/42/300/300" alt="相册图片" class="feed-image">
                </div>
                <div class="repost-meta">
                    <span><i class="far fa-images"></i> 共36张照片</span>
                    <span><i class="far fa-heart"></i> 245喜欢</span>
                </div>
            </div>
            <div class="feed-actions">
                <button class="action-btn comment-toggle" data-target="comments-5">
                    <i class="far fa-comment"></i> 评论 (8)
                </button>
                <button class="action-btn">
                    <i class="far fa-retweet"></i> 转发 (17)
                </button>
                <button class="action-btn">
                    <i class="far fa-heart"></i> 点赞 (93)
                </button>
                <button class="action-btn">
                    <i class="far fa-paper-plane"></i> 分享
                </button>
            </div>
            
            <!-- 评论区 -->
            <div class="comments-section" id="comments-5" style="display: none;">
                <div class="comments-header">全部评论 (8)</div>
                
                <!-- 评论1 -->
                <div class="comment-item">
                    <img src="https://picsum.photos/id/73/100/100" alt="评论者头像" class="comment-avatar">
                    <div class="comment-content">
                        <div class="comment-header">
                            <span class="comment-author">周旅游</span>
                            <span class="comment-time">3天前</span>
                        </div>
                        <div class="comment-text">请问这些照片是在哪里拍的？太漂亮了！</div>
                        <div class="comment-actions">
                            <button class="comment-action like-comment">
                                <i class="far fa-heart"></i> 5
                            </button>
                            <button class="comment-action reply-toggle" data-target="replies-5-1">
                                <i class="far fa-reply"></i> 回复
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 评论输入框 -->
            <div class="comment-input-container">
                <input type="text" class="comment-input" placeholder="添加评论...">
                <button class="send-comment">
                    <i class="fas fa-paper-plane"></i>
                </button>
            </div>
        </div>
        
        <!-- 6. 转发招聘动态 -->
        <div class="feed-item">
            <div class="feed-header">
                <img src="https://picsum.photos/id/69/100/100" alt="用户头像" class="user-avatar">
                <div class="user-info">
                    <div class="user-name">HR小林</div>
                    <div class="post-time">
                        <i class="far fa-clock"></i> 4天前
                    </div>
                </div>
                <button class="post-menu">
                    <i class="fas fa-ellipsis-h"></i>
                </button>
            </div>
            <div class="feed-content">
                <p>公司正在招聘前端开发工程师，有兴趣的朋友可以了解一下，待遇优厚，团队氛围好！</p>
            </div>
            <div class="repost-card">
                <div class="repost-type">
                    <i class="fas fa-briefcase"></i> 招聘
                </div>
                <div class="repost-title">
                    高级前端开发工程师 - 创新科技有限公司
                </div>
                <div class="repost-excerpt">
                    职责：负责公司产品前端开发与优化，参与技术方案设计，推动前端工程化建设...
                </div>
                <div class="repost-meta">
                    <span><i class="fas fa-money-bill-wave"></i> 15k-25k</span>
                    <span><i class="fas fa-map-marker-alt"></i> 上海</span>
                </div>
            </div>
            <div class="feed-actions">
                <button class="action-btn comment-toggle" data-target="comments-6">
                    <i class="far fa-comment"></i> 评论 (23)
                </button>
                <button class="action-btn">
                    <i class="far fa-retweet"></i> 转发 (47)
                </button>
                <button class="action-btn">
                    <i class="far fa-heart"></i> 点赞 (36)
                </button>
                <button class="action-btn">
                    <i class="far fa-paper-plane"></i> 分享
                </button>
            </div>
            
            <!-- 评论区 -->
            <div class="comments-section" id="comments-6" style="display: none;">
                <div class="comments-header">全部评论 (23)</div>
                
                <!-- 评论1 -->
                <div class="comment-item">
                    <img src="https://picsum.photos/id/74/100/100" alt="评论者头像" class="comment-avatar">
                    <div class="comment-content">
                        <div class="comment-header">
                            <span class="comment-author">吴开发</span>
                            <span class="comment-time">4天前</span>
                        </div>
                        <div class="comment-text">需要什么技术栈？有远程工作的可能吗？</div>
                        <div class="comment-actions">
                            <button class="comment-action like-comment">
                                <i class="far fa-heart"></i> 9
                            </button>
                            <button class="comment-action reply-toggle" data-target="replies-6-1">
                                <i class="far fa-reply"></i> 回复
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 评论输入框 -->
            <div class="comment-input-container">
                <input type="text" class="comment-input" placeholder="添加评论...">
                <button class="send-comment">
                    <i class="fas fa-paper-plane"></i>
                </button>
            </div>
        </div>
    </div>
    
    <!-- 底部发布栏 -->
    <div class="bottom-bar">
        <input type="text" class="post-input" placeholder="分享你的想法...">
        <button class="post-btn">
            <i class="fas fa-paper-plane"></i>
        </button>
    </div>
    
    <!-- Bootstrap JS Bundle with Popper -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
    
    <script>
        // 评论区展开/折叠
        const commentToggles = document.querySelectorAll('.comment-toggle');
        commentToggles.forEach(toggle => {
            toggle.addEventListener('click', function() {
                const targetId = this.getAttribute('data-target');
                const commentsSection = document.getElementById(targetId);
                
                if (commentsSection.style.display === 'none' || !commentsSection.style.display) {
                    commentsSection.style.display = 'block';
                    commentsSection.scrollIntoView({ behavior: 'smooth', block: 'nearest' });
                } else {
                    commentsSection.style.display = 'none';
                }
            });
        });
        
        // 回复框显示/隐藏
        const replyToggles = document.querySelectorAll('.reply-toggle');
        replyToggles.forEach(toggle => {
            toggle.addEventListener('click', function() {
                const targetId = this.getAttribute('data-target');
                const repliesContainer = document.getElementById(targetId);
                
                if (repliesContainer.children.length > 0) {
                    if (repliesContainer.style.display === 'none' || !repliesContainer.style.display) {
                        repliesContainer.style.display = 'block';
                    } else {
                        repliesContainer.style.display = 'none';
                    }
                }
                
                // 自动填充回复对象
                const commentInput = this.closest('.feed-item').querySelector('.comment-input');
                const commentAuthor = this.closest('.comment-item').querySelector('.comment-author').textContent;
                commentInput.value = `回复 @${commentAuthor}：`;
                commentInput.focus();
            });
        });
        
        // 发送评论
        const sendCommentBtns = document.querySelectorAll('.send-comment');
        sendCommentBtns.forEach(btn => {
            btn.addEventListener('click', function() {
                const input = this.closest('.comment-input-container').querySelector('.comment-input');
                const commentText = input.value.trim();
                
                if (commentText) {
                    const feedItem = this.closest('.feed-item');
                    const commentsSection = feedItem.querySelector('.comments-section');
                    const commentToggle = feedItem.querySelector('.comment-toggle');
                    
                    commentsSection.style.display = 'block';
                    
                    // 更新评论数量
                    const currentCount = parseInt(commentToggle.textContent.match(/\d+/)[0]);
                    commentToggle.innerHTML = `<i class="far fa-comment"></i> 评论 (${currentCount + 1})`;
                    
                    // 创建新评论
                    const newComment = document.createElement('div');
                    newComment.className = 'comment-item';
                    newComment.innerHTML = `
                        <img src="https://picsum.photos/id/60/100/100" alt="你的头像" class="comment-avatar">
                        <div class="comment-content">
                            <div class="comment-header">
                                <span class="comment-author">我</span>
                                <span class="comment-time">刚刚</span>
                            </div>
                            <div class="comment-text">${commentText}</div>
                            <div class="comment-actions">
                                <button class="comment-action like-comment">
                                    <i class="far fa-heart"></i> 0
                                </button>
                                <button class="comment-action">
                                    <i class="far fa-reply"></i> 回复
                                </button>
                            </div>
                        </div>
                    `;
                    
                    // 添加到评论区顶部
                    const commentsHeader = commentsSection.querySelector('.comments-header');
                    commentsSection.insertBefore(newComment, commentsHeader.nextSibling);
                    
                    input.value = '';
                    newComment.scrollIntoView({ behavior: 'smooth' });
                }
            });
        });
        
        // 评论输入框回车发送
        const commentInputs = document.querySelectorAll('.comment-input');
        commentInputs.forEach(input => {
            input.addEventListener('keydown', function(e) {
                if (e.key === 'Enter') {
                    e.preventDefault();
                    this.closest('.comment-input-container').querySelector('.send-comment').click();
                }
            });
        });
        
        // 评论点赞功能
        document.addEventListener('click', function(e) {
            if (e.target.closest('.like-comment')) {
                const likeBtn = e.target.closest('.like-comment');
                const icon = likeBtn.querySelector('i');
                const countEl = likeBtn.childNodes[2];
                
                if (icon.classList.contains('far')) {
                    icon.classList.remove('far');
                    icon.classList.add('fas');
                    icon.style.color = 'var(--secondary)';
                    countEl.textContent = ` ${parseInt(countEl.textContent.trim()) + 1}`;
                } else {
                    icon.classList.remove('fas');
                    icon.classList.add('far');
                    icon.style.color = '';
                    countEl.textContent = ` ${parseInt(countEl.textContent.trim()) - 1}`;
                }
            }
        });
        
        // 动态点赞功能
        const likeButtons = document.querySelectorAll('.action-btn:has(.fa-heart)');
        likeButtons.forEach(btn => {
            btn.addEventListener('click', function() {
                const icon = this.querySelector('i');
                const countEl = this.childNodes[2];
                
                if (icon.classList.contains('far')) {
                    icon.classList.remove('far');
                    icon.classList.add('fas');
                    this.classList.add('active');
                    const count = countEl.textContent.trim() ? parseInt(countEl.textContent.trim()) : 0;
                    countEl.textContent = ` ${count + 1}`;
                } else {
                    icon.classList.remove('fas');
                    icon.classList.add('far');
                    this.classList.remove('active');
                    countEl.textContent = ` ${parseInt(countEl.textContent.trim()) - 1}`;
                }
            });
        });
        
        // 转发功能
        const repostButtons = document.querySelectorAll('.action-btn:has(.fa-retweet)');
        repostButtons.forEach(btn => {
            btn.addEventListener('click', function() {
                const countEl = this.childNodes[2];
                const count = countEl.textContent.trim() ? parseInt(countEl.textContent.trim()) : 0;
                countEl.textContent = ` ${count + 1}`;
                
                // 显示转发成功提示
                const提示 = document.createElement('div');
                提示.textContent = '转发成功';
                提示.style.position = 'fixed';
                提示.style.top = '50%';
                提示.style.left = '50%';
                提示.style.transform = 'translate(-50%, -50%)';
                提示.style.backgroundColor = 'rgba(0,0,0,0.7)';
                提示.style.color = 'white';
                提示.style.padding = '8px 16px';
                提示.style.borderRadius = '4px';
                提示.style.zIndex = '9999';
                document.body.appendChild(提示);
                
                setTimeout(() => 提示.remove(), 1500);
            });
        });
        
        // 发布新动态
        document.querySelector('.post-btn').addEventListener('click', function() {
            const input = document.querySelector('.post-input');
            if (input.value.trim()) {
                alert(`发布动态：${input.value}`);
                input.value = '';
            } else {
                alert('请输入内容后再发布');
            }
        });
    </script>
</body>
</html>
